package cn.sintang.test.reflect;

/**
 * @author txy
 * @date 2017/12/1 8:59
 */
public class ReflectTest01 {
    public static void main(String[] args) {
        checkParentLoader();
    }

    /**
     * 查看下父装载器
     */
    public static void checkParentLoader(){
        /**
         *  根装载器
         *      - ExtClassLoader
         *          - AppClassLoader
         */
        ClassLoader loader = Thread.currentThread().getContextClassLoader();
        System.out.println(loader);
        System.out.println(loader.getParent());
        System.out.println(loader.getParent().getParent());
    }
}
